<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */
$menu = <<<MENU

[		

    {
        "path": "house/classify",
        "name": "HouseClassify",
        "component": "/application/houseProperty/classify",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
    {
        "path": "house/banner",
        "name": "HouseBanner",
        "component": "/application/houseProperty/banner",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
    {
        "path": "house/manage",
        "name": "HouseManage",
        "component": "/application/houseProperty/manage",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
    {
        "path": "house/screen",
        "name": "HouseScreenManage",
        "component": "/application/houseProperty/screen",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
    {
        "path": "house/customer",
        "name": "HouseAppointmentCustomer",
        "component": "/application/houseProperty/customer",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
    {
        "path": "house/share/list",
        "name": "HouseShare",
        "component": "/application/houseProperty/share/list",
        "meta": {
            "metaName" : "house",
            "keepAlive": true,
            "title": "AppManage",
            "isOnly": false,
            "auth": [],
            "pagePermission": [
                {
                    "title": "HouseClassify",
                    "index": 0,
                    "url": "/app/house/classify",
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseBanner",
                    "url": "/app/house/banner",
                    "index": 1,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseManage",
                    "url": "/app/house/manage",
                    "index": 2,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseScreenManage",
                    "url": "/app/house/screen",
                    "index": 3,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseAppointmentCustomer",
                    "url": "/app/house/customer",
                    "index": 4,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                },
                {
                    "title": "HouseShare",
                    "url": "/app/house/share/list",
                    "index": 5,
                    "auth": [
                        "view",
                        "add",
                        "edit",
                        "del",
                        "outport"
                    ]
                }
            ]
        }
    },
            {
                "path": "house/editClassify",
                "name": "EditHouseClassify",
                "component": "/application/houseProperty/editClassify",
                "meta": {
                    "metaName" : "house",
                  
                    "title": "AppManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditHouseClassify",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "house/editBanner",
                "name": "EditHouseBanner",
                "component": "/application/houseProperty/editBanner",
                "meta": {
                    "metaName" : "house",
                  
                    "title": "AppManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditHouseBanner",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "house/share/edit",
                "name": "HouseShareEdit",
                "component": "/application/houseProperty/share/edit",
                "meta": {
                    "metaName" : "house",
                    "title": "AppManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "HouseShareEdit",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "house/share/detail",
                "name": "HouseShareDetail",
                "component": "/application/houseProperty/share/detail",
                "meta": {
                    "metaName" : "house",
                    "title": "AppManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "HouseShareDetail",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "house/editHouse",
                "name": "EditHouse",
                "component": "/application/houseProperty/editHouse",
                "meta": {
                    "metaName" : "house",
                  
                    "title": "AppManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditHouse",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            }
		
			

]
						
MENU;


$menus = <<<MENU


{
 "path": "/house",
 "component": "Layout",
 "redirect": "/house/manage",
 "meta": {
  "menuName": "House",
  "icon": "iconfangchan01",
  "subNavName": [{
   "name": "HouseManage",
   "url": [{
    "name": "HouseList",
    "url": "/house/manage"
   }, {
    "name": "HouseClassify",
    "url": "/house/classify"
   }, {
    "name": "HouseShare",
    "url": "/house/share/list"
   }]
  }, {
   "name": "HouseAppointmentCustomer",
   "url": [{
    "name": "HouseAppointmentCustomer",
    "url": "/house/customer"
   }]
  }, {
   "name": "HouseSet",
   "url": [{
    "name": "HouseScreenManage",
    "url": "/house/screen"
   }, {
    "name": "HouseBanner",
    "url": "/house/banner"
   }]
  }]
 },
 "children": [{
  "path": "manage",
  "name": "House",
  "component": "/application/houseProperty/manage",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "HouseList",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "classify",
  "name": "House",
  "component": "/application/houseProperty/classify",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "HouseClassify",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "customer",
  "name": "House",
  "component": "/application/houseProperty/customer",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "HouseAppointmentCustomer",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "screen",
  "name": "House",
  "component": "/application/houseProperty/screen",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "HouseScreenManage",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "banner",
  "name": "House",
  "component": "/application/houseProperty/banner",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "HouseBanner",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
    "path": "share/list",
    "name": "House",
    "component": "/application/houseProperty/share/list",
    "meta": {
     "keepAlive": true,
     "refresh": false,
     "title": "HouseManage",
     "isOnly": false,
     "auth": [],
     "pagePermission": [{
      "title": "HouseShare",
      "index": 0,
      "auth": ["view", "add", "edit", "del", "outport"]
     }]
    }
   },{
  "path": "editClassify",
  "name": "House",
  "component": "/application/houseProperty/editClassify",
  "meta": {
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "EditHouseClassify",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "editBanner",
  "name": "House",
  "component": "/application/houseProperty/editBanner",
  "meta": {
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "EditHouseBanner",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 },  {
    "path": "share/edit",
    "name": "House",
    "component": "/application/houseProperty/share/edit",
    "meta": {
     "title": "HouseManage",
     "isOnly": false,
     "auth": [],
     "pagePermission": [{
      "title": "HouseShareEdit",
      "index": 0,
      "auth": ["view", "add", "edit", "del", "outport"]
     }]
    }
   }, {
    "path": "share/detail",
    "name": "House",
    "component": "/application/houseProperty/share/detail",
    "meta": {
     "title": "HouseManage",
     "isOnly": false,
     "auth": [],
     "pagePermission": [{
      "title": "HouseShareDetail",
      "index": 0,
      "auth": ["view", "add", "edit", "del", "outport"]
     }]
    }
   },{
  "path": "editHouse",
  "name": "House",
  "component": "/application/houseProperty/editHouse",
  "meta": {
   "title": "HouseManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "EditHouse",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }]
}
MENU;

$app_name = config('app.AdminModelList')['app_model_name'];

$menu = $app_name=='longbing_house'?$menus:$menu;


return ['house' => $menu];


